package com.lin.boot05webadmin.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ChenweiLin
 * @create 2021-04-02 21:43
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("user") //实际对应表名字
public class User {

    //以下是登陆判断的字段
    //@TableField 该属性对应数据库表中的哪个属性  exist = false 该属性在表中不存在
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String passWord;

    //以下是数据库的字段
    private Long id;
    private String name;
    private Integer age;
    private String email;
}
